<?php
$tdatatbl_fqas=array();
	$tdatatbl_fqas[".NumberOfChars"]=80; 
	$tdatatbl_fqas[".ShortName"]="tbl_fqas";
	$tdatatbl_fqas[".OwnerID"]="";
	$tdatatbl_fqas[".OriginalTable"]="tbl_fqas";


	
//	field labels
$fieldLabelstbl_fqas = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_fqas["English"]=array();
	$fieldToolTipstbl_fqas["English"]=array();
	$fieldLabelstbl_fqas["English"]["id"] = "Id";
	$fieldToolTipstbl_fqas["English"]["id"] = "";
	$fieldLabelstbl_fqas["English"]["noi_dung_tra_loi_vn"] = "Noi Dung Tra Loi Vn";
	$fieldToolTipstbl_fqas["English"]["noi_dung_tra_loi_vn"] = "";
	$fieldLabelstbl_fqas["English"]["noi_dung_tra_loi_en"] = "Noi Dung Tra Loi En";
	$fieldToolTipstbl_fqas["English"]["noi_dung_tra_loi_en"] = "";
	$fieldLabelstbl_fqas["English"]["ma_nguoi_lien_he"] = "Ma Nguoi Lien He";
	$fieldToolTipstbl_fqas["English"]["ma_nguoi_lien_he"] = "";
	$fieldLabelstbl_fqas["English"]["tra_loi"] = "Tra Loi";
	$fieldToolTipstbl_fqas["English"]["tra_loi"] = "";
	$fieldLabelstbl_fqas["English"]["noi_dung_vn"] = "Noi Dung Vn";
	$fieldToolTipstbl_fqas["English"]["noi_dung_vn"] = "";
	$fieldLabelstbl_fqas["English"]["noi_dung_en"] = "Noi Dung En";
	$fieldToolTipstbl_fqas["English"]["noi_dung_en"] = "";
	if (count($fieldToolTipstbl_fqas["English"])){
		$tdatatbl_fqas[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_fqas[".NCSearch"]=true;

	

$tdatatbl_fqas[".shortTableName"] = "tbl_fqas";
$tdatatbl_fqas[".nSecOptions"] = 0;
$tdatatbl_fqas[".recsPerRowList"] = 1;	
$tdatatbl_fqas[".tableGroupBy"] = "0";
$tdatatbl_fqas[".mainTableOwnerID"] = "";
$tdatatbl_fqas[".moveNext"] = 1;




$tdatatbl_fqas[".showAddInPopup"] = false;

$tdatatbl_fqas[".showEditInPopup"] = false;

$tdatatbl_fqas[".showViewInPopup"] = false;


$tdatatbl_fqas[".fieldsForRegister"] = array();
	
$tdatatbl_fqas[".listAjax"] = false;

	$tdatatbl_fqas[".audit"] = false;

	$tdatatbl_fqas[".locking"] = false;
	
$tdatatbl_fqas[".listIcons"] = true;
$tdatatbl_fqas[".edit"] = true;
$tdatatbl_fqas[".inlineEdit"] = true;
$tdatatbl_fqas[".view"] = true;

$tdatatbl_fqas[".exportTo"] = true;

$tdatatbl_fqas[".printFriendly"] = true;

$tdatatbl_fqas[".delete"] = true;

$tdatatbl_fqas[".showSimpleSearchOptions"] = false;

$tdatatbl_fqas[".showSearchPanel"] = true;


$tdatatbl_fqas[".isUseAjaxSuggest"] = true;

$tdatatbl_fqas[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_fqas[".addPageEvents"] = false;

$tdatatbl_fqas[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_fqas[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_fqas[".isUseTimeForSearch"] = false;

$tdatatbl_fqas[".isUseiBox"] = false;



$tdatatbl_fqas[".isUseInlineAdd"] = true;

$tdatatbl_fqas[".isUseInlineEdit"] = true;
$tdatatbl_fqas[".isUseInlineJs"] = $tdatatbl_fqas[".isUseInlineAdd"] || $tdatatbl_fqas[".isUseInlineEdit"];

$tdatatbl_fqas[".allSearchFields"] = array();

$tdatatbl_fqas[".globSearchFields"][] = "ma_nguoi_lien_he";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_nguoi_lien_he", $tdatatbl_fqas[".allSearchFields"]))
{
	$tdatatbl_fqas[".allSearchFields"][] = "ma_nguoi_lien_he";	
}
$tdatatbl_fqas[".globSearchFields"][] = "tra_loi";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tra_loi", $tdatatbl_fqas[".allSearchFields"]))
{
	$tdatatbl_fqas[".allSearchFields"][] = "tra_loi";	
}


$tdatatbl_fqas[".googleLikeFields"][] = "id";
$tdatatbl_fqas[".googleLikeFields"][] = "ma_nguoi_lien_he";
$tdatatbl_fqas[".googleLikeFields"][] = "tra_loi";



$tdatatbl_fqas[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_fqas[".allSearchFields"])) 
{
	$tdatatbl_fqas[".allSearchFields"][] = "id";	
}
$tdatatbl_fqas[".advSearchFields"][] = "noi_dung_tra_loi_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung_tra_loi_vn", $tdatatbl_fqas[".allSearchFields"])) 
{
	$tdatatbl_fqas[".allSearchFields"][] = "noi_dung_tra_loi_vn";	
}
$tdatatbl_fqas[".advSearchFields"][] = "noi_dung_tra_loi_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung_tra_loi_en", $tdatatbl_fqas[".allSearchFields"])) 
{
	$tdatatbl_fqas[".allSearchFields"][] = "noi_dung_tra_loi_en";	
}
$tdatatbl_fqas[".advSearchFields"][] = "ma_nguoi_lien_he";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_nguoi_lien_he", $tdatatbl_fqas[".allSearchFields"])) 
{
	$tdatatbl_fqas[".allSearchFields"][] = "ma_nguoi_lien_he";	
}
$tdatatbl_fqas[".advSearchFields"][] = "tra_loi";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tra_loi", $tdatatbl_fqas[".allSearchFields"])) 
{
	$tdatatbl_fqas[".allSearchFields"][] = "tra_loi";	
}
$tdatatbl_fqas[".advSearchFields"][] = "noi_dung_vn";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung_vn", $tdatatbl_fqas[".allSearchFields"])) 
{
	$tdatatbl_fqas[".allSearchFields"][] = "noi_dung_vn";	
}
$tdatatbl_fqas[".advSearchFields"][] = "noi_dung_en";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung_en", $tdatatbl_fqas[".allSearchFields"])) 
{
	$tdatatbl_fqas[".allSearchFields"][] = "noi_dung_en";	
}

$tdatatbl_fqas[".isTableType"] = "list";


	

$tdatatbl_fqas[".isDisplayLoading"] = true;

$tdatatbl_fqas[".isResizeColumns"] = false;





$tdatatbl_fqas[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_fqas[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_fqas[".orderindexes"] = array();

$tdatatbl_fqas[".sqlHead"] = "SELECT tbl_fqas.id,  tbl_fqas.noi_dung_tra_loi_vn,  tbl_fqas.noi_dung_tra_loi_en,  tbl_fqas.ma_nguoi_lien_he,  tbl_fqas.tra_loi,  tbl_lien_he.noi_dung_vn,  tbl_lien_he.noi_dung_en";
$tdatatbl_fqas[".sqlFrom"] = "FROM tbl_fqas  INNER JOIN tbl_lien_he ON tbl_lien_he.id = tbl_fqas.ma_nguoi_lien_he";
$tdatatbl_fqas[".sqlWhereExpr"] = "";
$tdatatbl_fqas[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_fqas[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_fqas[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_fqas[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_fqas";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "tbl_fqas.id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
				//End validation
	
				
		
				
		
		
		
			$tdatatbl_fqas["id"]=$fdata;
//	noi_dung_tra_loi_vn
	$fdata = array();
	$fdata["strName"] = "noi_dung_tra_loi_vn";
	$fdata["ownerTable"] = "tbl_fqas";
		$fdata["Label"]="Noi Dung Tra Loi Vn"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "noi_dung_tra_loi_vn";
	
		$fdata["FullName"]= "tbl_fqas.noi_dung_tra_loi_vn";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 2;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=800";
		$fdata["nRows"] = 800;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_fqas["noi_dung_tra_loi_vn"]=$fdata;
//	noi_dung_tra_loi_en
	$fdata = array();
	$fdata["strName"] = "noi_dung_tra_loi_en";
	$fdata["ownerTable"] = "tbl_fqas";
		$fdata["Label"]="Noi Dung Tra Loi En"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "noi_dung_tra_loi_en";
	
		$fdata["FullName"]= "tbl_fqas.noi_dung_tra_loi_en";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 3;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=800";
		$fdata["nRows"] = 800;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_fqas["noi_dung_tra_loi_en"]=$fdata;
//	ma_nguoi_lien_he
	$fdata = array();
	$fdata["strName"] = "ma_nguoi_lien_he";
	$fdata["ownerTable"] = "tbl_fqas";
		$fdata["Label"]="Ma Nguoi Lien He"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "Custom";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="id";
				$fdata["LookupTable"]="tbl_lien_he";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		
	$fdata["GoodName"]= "ma_nguoi_lien_he";
	
		$fdata["FullName"]= "tbl_fqas.ma_nguoi_lien_he";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
				
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_fqas["ma_nguoi_lien_he"]=$fdata;
//	tra_loi
	$fdata = array();
	$fdata["strName"] = "tra_loi";
	$fdata["ownerTable"] = "tbl_fqas";
		$fdata["Label"]="Tra Loi"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Checkbox";
	$fdata["ViewFormat"]= "Checkbox";
	
		
		
		
		
		
	$fdata["GoodName"]= "tra_loi";
	
		$fdata["FullName"]= "tbl_fqas.tra_loi";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_fqas["tra_loi"]=$fdata;
//	noi_dung_vn
	$fdata = array();
	$fdata["strName"] = "noi_dung_vn";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Noi Dung Vn"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Database image";
	$fdata["ViewFormat"]= "Database Image";
	
		
		
			$fdata["ImageWidth"] = 0;
	$fdata["ImageHeight"] = 0;
	
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "noi_dung_vn";
	
		$fdata["FullName"]= "tbl_lien_he.noi_dung_vn";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_fqas["noi_dung_vn"]=$fdata;
//	noi_dung_en
	$fdata = array();
	$fdata["strName"] = "noi_dung_en";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Noi Dung En"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Database image";
	$fdata["ViewFormat"]= "Database Image";
	
		
		
			$fdata["ImageWidth"] = 0;
	$fdata["ImageHeight"] = 0;
	
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "noi_dung_en";
	
		$fdata["FullName"]= "tbl_lien_he.noi_dung_en";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_fqas["noi_dung_en"]=$fdata;

	
$tables_data["tbl_fqas"]=&$tdatatbl_fqas;
$field_labels["tbl_fqas"] = &$fieldLabelstbl_fqas;
$fieldToolTips["tbl_fqas"] = &$fieldToolTipstbl_fqas;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_fqas"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_fqas"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="tbl_lien_he";
	$masterTablesData["tbl_fqas"][$mIndex] = array(
		  "mDataSourceTable"=>"tbl_lien_he"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "tbl_lien_he"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 0
	);	
		$masterTablesData["tbl_fqas"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["tbl_fqas"][$mIndex]["detailKeys"][]="ma_nguoi_lien_he";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto126=array();
$proto126["m_strHead"] = "SELECT";
$proto126["m_strFieldList"] = "tbl_fqas.id,  tbl_fqas.noi_dung_tra_loi_vn,  tbl_fqas.noi_dung_tra_loi_en,  tbl_fqas.ma_nguoi_lien_he,  tbl_fqas.tra_loi,  tbl_lien_he.noi_dung_vn,  tbl_lien_he.noi_dung_en";
$proto126["m_strFrom"] = "FROM tbl_fqas  INNER JOIN tbl_lien_he ON tbl_lien_he.id = tbl_fqas.ma_nguoi_lien_he";
$proto126["m_strWhere"] = "";
$proto126["m_strOrderBy"] = "";
$proto126["m_strTail"] = "";
$proto127=array();
$proto127["m_sql"] = "";
$proto127["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto127["m_column"]=$obj;
$proto127["m_contained"] = array();
$proto127["m_strCase"] = "";
$proto127["m_havingmode"] = "0";
$proto127["m_inBrackets"] = "0";
$proto127["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto127);

$proto126["m_where"] = $obj;
$proto129=array();
$proto129["m_sql"] = "";
$proto129["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto129["m_column"]=$obj;
$proto129["m_contained"] = array();
$proto129["m_strCase"] = "";
$proto129["m_havingmode"] = "0";
$proto129["m_inBrackets"] = "0";
$proto129["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto129);

$proto126["m_having"] = $obj;
$proto126["m_fieldlist"] = array();
						$proto131=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_fqas"
));

$proto131["m_expr"]=$obj;
$proto131["m_alias"] = "";
$obj = new SQLFieldListItem($proto131);

$proto126["m_fieldlist"][]=$obj;
						$proto133=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung_tra_loi_vn",
	"m_strTable" => "tbl_fqas"
));

$proto133["m_expr"]=$obj;
$proto133["m_alias"] = "";
$obj = new SQLFieldListItem($proto133);

$proto126["m_fieldlist"][]=$obj;
						$proto135=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung_tra_loi_en",
	"m_strTable" => "tbl_fqas"
));

$proto135["m_expr"]=$obj;
$proto135["m_alias"] = "";
$obj = new SQLFieldListItem($proto135);

$proto126["m_fieldlist"][]=$obj;
						$proto137=array();
			$obj = new SQLField(array(
	"m_strName" => "ma_nguoi_lien_he",
	"m_strTable" => "tbl_fqas"
));

$proto137["m_expr"]=$obj;
$proto137["m_alias"] = "";
$obj = new SQLFieldListItem($proto137);

$proto126["m_fieldlist"][]=$obj;
						$proto139=array();
			$obj = new SQLField(array(
	"m_strName" => "tra_loi",
	"m_strTable" => "tbl_fqas"
));

$proto139["m_expr"]=$obj;
$proto139["m_alias"] = "";
$obj = new SQLFieldListItem($proto139);

$proto126["m_fieldlist"][]=$obj;
						$proto141=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung_vn",
	"m_strTable" => "tbl_lien_he"
));

$proto141["m_expr"]=$obj;
$proto141["m_alias"] = "";
$obj = new SQLFieldListItem($proto141);

$proto126["m_fieldlist"][]=$obj;
						$proto143=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung_en",
	"m_strTable" => "tbl_lien_he"
));

$proto143["m_expr"]=$obj;
$proto143["m_alias"] = "";
$obj = new SQLFieldListItem($proto143);

$proto126["m_fieldlist"][]=$obj;
$proto126["m_fromlist"] = array();
												$proto145=array();
$proto145["m_link"] = "SQLL_MAIN";
			$proto146=array();
$proto146["m_strName"] = "tbl_fqas";
$proto146["m_columns"] = array();
$proto146["m_columns"][] = "id";
$proto146["m_columns"][] = "noi_dung_tra_loi_vn";
$proto146["m_columns"][] = "noi_dung_tra_loi_en";
$proto146["m_columns"][] = "ma_nguoi_lien_he";
$proto146["m_columns"][] = "tra_loi";
$obj = new SQLTable($proto146);

$proto145["m_table"] = $obj;
$proto145["m_alias"] = "";
$proto147=array();
$proto147["m_sql"] = "";
$proto147["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto147["m_column"]=$obj;
$proto147["m_contained"] = array();
$proto147["m_strCase"] = "";
$proto147["m_havingmode"] = "0";
$proto147["m_inBrackets"] = "0";
$proto147["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto147);

$proto145["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto145);

$proto126["m_fromlist"][]=$obj;
												$proto149=array();
$proto149["m_link"] = "SQLL_INNERJOIN";
			$proto150=array();
$proto150["m_strName"] = "tbl_lien_he";
$proto150["m_columns"] = array();
$proto150["m_columns"][] = "id";
$proto150["m_columns"][] = "ten_vn";
$proto150["m_columns"][] = "ten_en";
$proto150["m_columns"][] = "dia_chi_vn";
$proto150["m_columns"][] = "dia_chi_en";
$proto150["m_columns"][] = "dien_thoai_vn";
$proto150["m_columns"][] = "dien_thoai_en";
$proto150["m_columns"][] = "email_vn";
$proto150["m_columns"][] = "email_en";
$proto150["m_columns"][] = "noi_dung_vn";
$proto150["m_columns"][] = "noi_dung_en";
$obj = new SQLTable($proto150);

$proto149["m_table"] = $obj;
$proto149["m_alias"] = "";
$proto151=array();
$proto151["m_sql"] = "tbl_lien_he.id = tbl_fqas.ma_nguoi_lien_he";
$proto151["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_lien_he"
));

$proto151["m_column"]=$obj;
$proto151["m_contained"] = array();
$proto151["m_strCase"] = "= tbl_fqas.ma_nguoi_lien_he";
$proto151["m_havingmode"] = "0";
$proto151["m_inBrackets"] = "0";
$proto151["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto151);

$proto149["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto149);

$proto126["m_fromlist"][]=$obj;
$proto126["m_groupby"] = array();
$proto126["m_orderby"] = array();
$obj = new SQLQuery($proto126);

$queryData_tbl_fqas = $obj;
$tdatatbl_fqas[".sqlquery"] = $queryData_tbl_fqas;

$tableEvents["tbl_fqas"] = new eventsBase;

?>
